cssvalue: Add _gtk_css_value_equal()
authorBenjamin Otte <otte@redhat.com>
Mon, 26 Mar 2012 23:43:12 +0000 (01:43 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 17 Apr 2012 06:59:12 +0000 (08:59 +0200)
commitffe50c3b674fe23596fd0af855ee8c1a678c3283
treec4c19807a51ff484bab3365439d70fb28cc197ac
parent3e601691d969e9194251ead18687d05eb7e49241
cssvalue: Add _gtk_css_value_equal()

For now, we return FALSE for all default css values, so this is not very
useful.

I also think of this as an optimization equal, not a guaranteed equal,
because we don't even have a notion of what "equal" means.

For example, for background-repeat, "repeat, repeat" and "repeat"
are functionally equivalent. But the cssvalue has no idea that it's used
for background-repeat.
As a more complicated example, "repeat, no-repeat" and "repeat" are
equal to what one sees as long as there's only one image listed
background-image-source. But once you start transition'ing to an image
with 2 sources, it's different...
gtk/gtkcssarrayvalue.c
gtk/gtkcssinheritvalue.c
gtk/gtkcssinitialvalue.c
gtk/gtkcssstyleproperty.c
gtk/gtkcssvalue.c
gtk/gtkcssvalueprivate.h